from django.contrib import admin
from django.urls import path
from rest_framework import routers

from . import views
urlpatterns = [
]
router = routers.DefaultRouter()
# 2.使用路由对象生成路由
# 参数：1.路径名  2.调用视图集  3.给生成的路由起个名
router.register('classinfo',views.ClassBackendInfo,'classinfo')
# 3.路由追加
urlpatterns += router.urls
print(urlpatterns)